﻿<%@ Page Language="C#" AutoEventWireup="true" ResponseEncoding="utf-8"  CodeFile="index.aspx.cs" Inherits="index" %>
<%@ Register TagPrefix="header" TagName="header" Src="header.ascx" %>
<%@ Register TagPrefix="footer" TagName="footer" Src="footer.ascx" %>
<%@ Register TagPrefix="rightnotice" TagName="rightnotice" Src="right_notice.ascx" %>
<%@ Register TagPrefix="noticeland" TagName="noticeland" Src="noticeland.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>源折扣首页</title>
    <meta name="baidu-site-verification" content="761e9c51d9c61c57efb45f74b6d60e69"/>
    <link rel="shortcut icon" href="images/logo/logoicon.ico" />
    <script type="text/javascript" src="js/sdc.js"></script>

    <script type="text/javascript">
        
        function move_show_mode(tag, thistag,url1,url2,url3,url4,url5) {
            thistagDiv=document.getElementById(thistag) ;
            
            var showDetails='showDetails'+thistag;
            var closeDetails='closeDetails'+thistag;
            var detailurl='detailurl'+thistag;
            var detailurl2='detailurl2'+thistag;
            var detailurl3='detailurl3'+thistag;
            var detailurl4='detailurl4'+thistag;
            var detailurl5='detailurl5'+thistag;
            var product_detail='product_detail'+thistag;
            var hiddentext='hidden'+thistag;
            
            //alert('showDetails='+showDetails);
            //alert('closeDetails='+closeDetails);
            //alert('detailurl='+detailurl);
            //alert('detailurl2='+detailurl2);
            //alert('detailurl3='+detailurl3);
            //alert('detailurl4='+detailurl4);
            //alert('detailurl5='+detailurl5);
            //alert('product_detail='+product_detail);
            
            var showDetailsDiv=document.getElementById(showDetails) ;
            var closeDetailsDiv=document.getElementById(closeDetails) ;
            var detailurlDiv=document.getElementById(detailurl) ;
            var detailurl2Div=document.getElementById(detailurl2) ;
            var detailurl3Div=document.getElementById(detailurl3) ;
            var detailurl4Div=document.getElementById(detailurl4) ;
            var detailurl5Div=document.getElementById(detailurl5) ;
            var product_detailDiv=document.getElementById(product_detail) ;
            var hiddentext=document.getElementById(hiddentext) ;
            
            //展开
            //alert('url4='+url4);
            if (tag=='showDetails') {
                product_detailDiv.style.display = 'block';
                showDetailsDiv.style.display = 'none';
                closeDetailsDiv.style.display = 'block';
                if(url1==''){
                    detailurlDiv.style.display = 'none';
                }
                if(url2==''){
                    detailurl2Div.style.display = 'none';
                }
                if(url3==''){
                    detailurl3Div.style.display = 'none';
                }
                if(url4==''){
                    detailurl4Div.style.display = 'none';
                }
                if(url5==''){
                    detailurl5Div.style.display = 'none';
                }
            } 
            //收起
            else if(tag=='closeDetails') {
                product_detailDiv.style.display = 'none';
                showDetailsDiv.style.display = 'block';
                closeDetailsDiv.style.display = 'none';
                hiddentext.focus();
            }
            

        }
        
    </script>
</head>
<body  class="bodystyle">
    <form id="form1" runat="server">
        <div id="total_div">
           <header:header id="header" runat="server" /> 
                   
           <div id="main_div">
               <div id="content_div">
                    
                    <div class="div001">
                    
                        <div id="realcontent_div">
                            <div class="left_div">
                                <!--公告栏层-->
                                <noticeland:noticeland ID="noticeland" runat="server" />
                                
                                <!--展现列表层-->
                                <div style="float:left; width:650px;">
                                    <div>
                                        <asp:Repeater ID="Repeater1" runat="server">
                                        <HeaderTemplate>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            
                                            <div id="productdiv<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="width:650px;">
                                                <div style="width:600px; float:left;">
                                                    <div style="margin-left:40px; padding-top:10px; word-break:break-all;">
                                                        
                                                        <a class="bluelink1" style="font-size:16px; font-weight:bold;" target="_blank" href="productdetail.aspx?productid=<%#DataBinder.Eval(Container.DataItem,"productnum") %>"><%#DataBinder.Eval(Container.DataItem,"producttitle") %></a>
                                                        <span class="orangelink1" style="margin-left:10px; font-size:14px;"><%#DataBinder.Eval(Container.DataItem,"productprice") %></span>
                                                        <input type="text" id="hidden<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="width:1px; background:inherit; background:transparent; border:0; padding:0;" />
                                                        <%--<asp:LinkButton ID="LinkButton1" CssClass="bluelink1" Font-Bold="true" Font-Size="16px"  PostBackUrl= '<%#"productdetail.aspx?productid=" + DataBinder.Eval(Container.DataItem,"productnum") %>' Text=<%#DataBinder.Eval(Container.DataItem,"producttitle") %> runat="server" />--%>
                                                        <asp:Image ID="Image1" ImageUrl="images/mainShowBg.png" Width="560px" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="productcontentdiv">
                                                    <div class="introductiondiv">
                                                        <div class="introductiondiv01">
                                                            <%--<div style="float:left;">分类：<a class="bluelink1" target="_blank" href="index.aspx?productkind=<%#DataBinder.Eval(Container.DataItem,"productkind") %>"><%#DataBinder.Eval(Container.DataItem,"productkind") %></a></div>--%>
                                                            <div style="float:left;">分类：<%#DataBinder.Eval(Container.DataItem,"productkind") %></div>
                                                            <div style="float:left; margin-left:165px;">
                                                                <%# ReformDate(DataBinder.Eval(Container.DataItem, "addtime").ToString())%>
                                                            </div>
                                                        </div><br />
                                                        
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction2") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction3") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction4") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction5") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction6") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction7") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction8") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction9") %></div>
                                                        <div class="introductiondiv02"><%#DataBinder.Eval(Container.DataItem,"introduction10") %></div>
            
                                                    </div>
                                                
                                                    <div class="righturl">
                                                        <div style="width:170px; text-align:center; float:left;  border-color:#CCCCCC; border-width:1px; border-style:solid;">
                                                            <div style="width:170px; height:170px; text-align:center">
                                                                <a style="cursor:pointer;" target="_blank" href=<%#DataBinder.Eval(Container.DataItem,"producturl") %>>
                                                                    <asp:Image ID="Image4" CssClass="rightpic" ImageUrl=<%#DataBinder.Eval(Container.DataItem,"picaddr") %> runat="server" />
                                                                </a>
                                                            </div>
                                                            <div class="listpicture">
                                                                <a class="bluelink1" style="font-size:14px; font-weight:bold;" target="_blank" href=<%#DataBinder.Eval(Container.DataItem,"producturl") %>>详细信息</a>
                                                            </div>
                                                        </div>
                                                        <div style="float:left; width:170px; text-align:center; padding-bottom:10px; padding-top:15px; color:#555555;">
                                                            商城：<asp:Label ID="Label4" runat="server" Text=<%#DataBinder.Eval(Container.DataItem,"source") %> ></asp:Label>
                                                        </div>
                                                    </div>
                                                    
                                                    <!--展开收起控制层-->
                                                    <div style="margin-left:30px; margin-bottom:10px; width:570px; float:left; display:block; ">
                                                        <div id="<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="padding-left:5px; line-height:200%; letter-spacing:1px; float:left;">                                                            <div id="product_detail<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="display:none; color:#555555; font-size:13px; float:left;">                                                                <div style="float:left; padding-top:10px;  width:570px;"><%#DataBinder.Eval(Container.DataItem,"detail") %></div>                                                                <div style="float:left; padding-top:10px;" id="detailurl<%#DataBinder.Eval(Container.DataItem,"productnum") %>">                                                                    <a target="_blank" href=<%#DataBinder.Eval(Container.DataItem,"producturl") %>>                                                                        <asp:Image ID="Image2" style="max-width:550px;" ImageUrl=<%#DataBinder.Eval(Container.DataItem,"detailurl") %> runat="server" />                                                                    </a>                                                                </div>                                                                <div style="float:left; padding-top:10px;  width:570px;"><%#DataBinder.Eval(Container.DataItem,"detail2") %></div>                                                                <div style="float:left; padding-top:10px;" id="detailurl2<%#DataBinder.Eval(Container.DataItem,"productnum") %>">                                                                    <a target="_blank" href=<%#DataBinder.Eval(Container.DataItem,"producturl") %>>                                                                        <asp:Image ID="Image3" style="max-width:550px;" ImageUrl=<%#DataBinder.Eval(Container.DataItem,"detailurl2") %> runat="server" />                                                                    </a>                                                                </div>                                                                <div style="float:left; padding-top:10px;  width:570px;"><%#DataBinder.Eval(Container.DataItem,"detail3") %></div>                                                                <div style="float:left; padding-top:10px;" id="detailurl3<%#DataBinder.Eval(Container.DataItem,"productnum") %>">                                                                    <a target="_blank" href=<%#DataBinder.Eval(Container.DataItem,"producturl") %>>                                                                        <asp:Image ID="Image5" style="max-width:550px;" ImageUrl=<%#DataBinder.Eval(Container.DataItem,"detailurl3") %> runat="server" />                                                                    </a>                                                                </div>                                                                <div style="float:left; padding-top:10px;  width:570px;"><%#DataBinder.Eval(Container.DataItem,"detail4") %></div>                                                                <div style="float:left; padding-top:10px;" id="detailurl4<%#DataBinder.Eval(Container.DataItem,"productnum") %>">                                                                    <a target="_blank" href=<%#DataBinder.Eval(Container.DataItem,"producturl") %>>                                                                        <asp:Image ID="Image6" style="max-width:550px;" ImageUrl=<%#DataBinder.Eval(Container.DataItem,"detailurl4") %> runat="server" />                                                                    </a>                                                                </div>                                                                <div style="float:left; padding-top:10px; width:570px;"><%#DataBinder.Eval(Container.DataItem,"detail5") %></div>
                                                                <div style="float:left; padding-top:10px;" id="detailurl5<%#DataBinder.Eval(Container.DataItem,"productnum") %>">
                                                                    <a target="_blank" href=<%#DataBinder.Eval(Container.DataItem,"producturl") %>>
                                                                        <asp:Image ID="Image7" style="max-width:550px;" ImageUrl=<%#DataBinder.Eval(Container.DataItem,"detailurl5") %> runat="server" />
                                                                    </a>
                                                                </div>
                                                            </div>                                                            <div style="width:570px; padding-top:10px; float:left;">                                                                <div id="displaycontrol<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="float:left; ">
				                                                    <%--<a id="showDetails<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="display:block;"  href="#productdiv<%#DataBinder.Eval(Container.DataItem,"productnum") %>" 
				                                                        onclick="move_show_mode('showDetails', '<%#DataBinder.Eval(Container.DataItem,"productnum") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl2") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl3") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl4") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl5") %>');">展开全文</a>--%>
				                                                    <input type="button" id="showDetails<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="display:block; color:#355C91; background:transparent; border:0; padding:0; cursor:pointer; text-decoration:underline;" value="展开全文" 
				                                                        onclick="move_show_mode('showDetails', '<%#DataBinder.Eval(Container.DataItem,"productnum") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl2") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl3") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl4") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl5") %>');" />
				                                                    <%--<a id="closeDetails<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="display:none;"  href="#productdiv<%#DataBinder.Eval(Container.DataItem,"productnum") %>" 
				                                                        onclick="move_show_mode('closeDetails', '<%#DataBinder.Eval(Container.DataItem,"productnum") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl2") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl3") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl4") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl5") %>');">向上收起</a>--%>
				                                                    <input type="button" id="closeDetails<%#DataBinder.Eval(Container.DataItem,"productnum") %>" style="display:none; color:#355C91; background:transparent; border:0; padding:0; cursor:pointer; text-decoration:underline;" value="向上收起" 
				                                                        onclick="move_show_mode('closeDetails', '<%#DataBinder.Eval(Container.DataItem,"productnum") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl2") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl3") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl4") %>', '<%#DataBinder.Eval(Container.DataItem,"detailurl5") %>');" />
				                                                </div>    				                                            				                                                <!--分享展现层--> 
                                                                <div style="width:190px; float:right;">
                                                                    <div style="padding-top:2px; cursor:pointer; float:left; color:#666666;">分享到：</div>
                                                                    <!-- Baidu Button BEGIN -->
                                                                    <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" data="{
                                                                        
                                                                        'desc':'',
                                                                        'text':'<%#DataBinder.Eval(Container.DataItem,"producttitle") %><%#DataBinder.Eval(Container.DataItem,"productprice") %>',
                                                                        'title':'<%#DataBinder.Eval(Container.DataItem,"producttitle") %><%#DataBinder.Eval(Container.DataItem,"productprice") %>',
                                                                        'url':'http://www.sourcediscount.com/productdetail.aspx?productid=<%#DataBinder.Eval(Container.DataItem,"productnum") %>',
                                                                        'pic':'<%#DataBinder.Eval(Container.DataItem,"picaddr") %>'
                                                                        
                                                                        }">
            				                                            
			                                                            <a class="bds_tsina"></a>
			                                                            <a class="bds_tqq"></a>
			                                                            <a class="bds_renren"></a>
			                                                            <a class="bds_qzone" ></a>
			                                                            <a class="bds_douban"></a>
			                                                            <span class="bds_more" ></span>
		                                                            </div>
		                                                            <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6569304" ></script>
                                                                    <script type="text/javascript" id="bdshell_js"></script>
                                                                    <script type="text/javascript">
                                                                        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
                                                                    </script>
                                                                    <!-- Baidu Button END -->
                                                                    
                                                                </div>
                                                                
                                                                                                                        </div>                                                        </div>
                                                    </div>
                                                                                                
                                                </div>

                                            </div>
                                                                                     
                                        </ItemTemplate>
                                        <FooterTemplate>     
                                        </FooterTemplate>
                                        </asp:Repeater> 
                                    </div>
                                    
                                    <div style="margin-left:30px; padding-top:5px; padding-bottom:5px; border-top-color:#CCCCCC; border-top-width:1px; border-top-style:dashed; float:left;">
                                        当前页:<asp:Label ID="lblCurPage" runat="server" Text="1" />
                                        总共:<asp:Label ID="lblTotalPage" runat="server" Text="Label" />&nbsp;
                                        <asp:LinkButton ID="lbtnFirstPage" CssClass="bluelink1" CausesValidation="false" runat="server" OnClick="lbtnFirstPage_Click" >第一页</asp:LinkButton>
                                        <asp:LinkButton ID="lbtnUpPage" CssClass="orangelink1" CausesValidation="false" runat="server" OnClick="lbtnUpPage_Click" >上一页</asp:LinkButton>&nbsp;&nbsp;
                                        <span id="span1" runat="server"></span>
                                        <asp:LinkButton ID="lbtnDownPage" CssClass="orangelink1" CausesValidation="false" runat="server" OnClick="lbtnDownPage_Click" >下一页</asp:LinkButton>
                                        <asp:LinkButton ID="lbtnLastPage" CssClass="bluelink1" CausesValidation="false" runat="server" OnClick="lbtnLastPage_Click" >最后一页</asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                            
                            <!--右边广告层-->
                            <rightnotice:rightnotice ID="eduinfo1" runat="server" />
                            
                        </div>
                    
                    
                    </div>
               </div>
           </div>
           
           <footer:footer ID="footer" runat="server" />
        	
        </div>

    </form>
</body>
</html>
